﻿<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
            <script type="text/html" template>
                <img src="{{ layui.setter.logoPath }}" />
            </script>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;" lay-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;" lay-event="message" title="消息">
                    <i class="layui-icon layui-icon-notice"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;" lay-event="note" title="便签"><i class="layui-icon layui-icon-note"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a href="javascript:;" lay-event="full" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;"><img src="/images/head.png" class="layui-nav-img"><cite>管理员</cite></a>
                <dl class="layui-nav-child">
                    <dd lay-unselect><a href="javascript:;" lay-event="info">个人中心</a></dd>
                    <dd lay-unselect><a href="javascript:;" lay-event="psw">修改密码</a></dd>
                    <dd lay-unselect><a href="javascript:;" lay-event="logout">安全退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;" lay-event="author" title="作者"><i class="layui-icon layui-icon-more-vertical"></i></a>
            </li>
        </ul>
    </div>
    <!-- 侧边栏 -->
    <div class="layui-side">
        <div class="layui-side-scroll">
            <script type="text/html" template="get" lay-url="/json/menus.json" lay-done="layui.data.nav(d[layui.setter.response.dataName]);">
                <ul class="layui-nav layui-nav-tree arrow1" lay-accordion="true">
                    {{# layui.each(d[layui.setter.response.dataName], function(index, item){ }}
                    <li class="layui-nav-item">
                        <a href="javascript:;" {{# if(item.url){ }} lay-href="{{ item.url }}" {{# } }}><i class="layui-icon {{ item.icon }}"></i>&emsp;<cite>{{ item.name }}</cite></a>
                        {{# if(item.subMenus&&item.subMenus.length>0){ }}
                        {{# getMenu(item.subMenus);}}
                        {{# } }}
                        {{#  function getMenu(subMenus){  }}
                        <dl class="layui-nav-child">
                            {{# layui.each(subMenus, function(index, item){ }}
                            <dd>
                                <a href="javascript:;" {{# if(item.url){ }} lay-href="{{ item.url }}" {{# } }}>{{ item.name }}</a>
                                {{# if(item.subMenus&&item.subMenus.length>0){ }}
                                {{# getMenu(item.subMenus);}}
                                {{# } }}
                            </dd>
                            {{# }); }}
                        </dl>
                        {{# } }}
                    </li>
                    {{# }); }}
                </ul>
            </script>
        </div>
    </div>
    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
    <div class="layui-footer">
        <script type="text/html" template>
            {{ layui.setter.copyright }}
            <span class="pull-right">Version {{ layui.cache.version.split("_")[0] }}</span>
        </script>
    </div>
</div>
<!-- 面包屑渲染模板 -->
<script type="text/html" id="breadcrumb">
    <div class="layui-body-header">
        <span class="layui-body-header-title">{{ d.name }}</span>
        <span class="layui-breadcrumb pull-right">
            <a href="#console/console">首页</a>
            {{# layui.each(layui.admin.getBreadcrumb(d.href), function(index, item){ }}
            <span lay-separator>/</span>
            <a><cite>{{ item }}</cite></a>
            {{# }); }}
        </span>
    </div>
</script>